<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>回车(Enter)键触发按钮点击事件</title>
	<link rel="stylesheet" href="./style.css">
</head>

<body>
	<p></p>
	<div>
		<input type="text" placeholder="请输入您想发送的内容:" class="text">
		<input type="button" value="发送" class="btn">
	</div>

	<script src="./index.js"></script>
</body>

</html>